package com.warmheart.builder.resource;

import com.warmheart.core.rs.base.BaseRsBuilder;
import com.warmheart.core.rs.oper.Rs;
import com.warmheart.entity.resource.ResourceBase;

/**
 * 
 * @ClassName: ResourceBase
 * @Description: 资源实体RsBuilder类，对应表名称为tb_resource_base
 *               温馨提示：不要修改该实体RsBuilder类的任何字段
 * @author ZhangJianyang
 * @date 2025年06月16日 下午15:20:02
 *
 */
public class ResourceBaseRsBuilder extends BaseRsBuilder<ResourceBase, ResourceBaseRsBuilder> {

    private final ResourceBase t;

    @Override
    protected ResourceBaseRsBuilder self() {
        return this;
    }

    @Override
    public ResourceBase core() {
        return this.t;
    }

    public ResourceBaseRsBuilder(ResourceBase resourceBase) {
        t = resourceBase;
    }

    /**
     * 资源名称
     */
    private Rs<ResourceBase, ResourceBaseRsBuilder> name;

    /**
     * 资源描述
     */
    private Rs<ResourceBase, ResourceBaseRsBuilder> description;

    public Rs<ResourceBase, ResourceBaseRsBuilder> name() {
        if (this.name == null) {
            this.name = new Rs<ResourceBase, ResourceBaseRsBuilder>(self(), "name", "name");
        }
        return this.name;
    }

    public Rs<ResourceBase, ResourceBaseRsBuilder> description() {
        if (this.description == null) {
            this.description = new Rs<ResourceBase, ResourceBaseRsBuilder>(self(), "description", "description");
        }
        return this.description;
    }
}